home *** CD-ROM | disk | FTP | other *** search
/ Willard Press Kit / Willard Press Kit.iso / mac / Acrobat Reader 5 PC / AcroRd32.exe / EXVW / 10014 < prev    next >
Text File  |  2002-12-14  |  6KB  |  131 lines

  1. gEditItemWidth = max_char_width() * 25;
  2. gStaticItemWidth = gEditItemWidth + gEditTextPad;
  3. gPopupItemWidth = max(zstring_width(zstring: '$$$avBindingLeft'),zstring_width(zstring: '$$$avBindingRight')) + (max_char_width() * 4);
  4. gLabelFilePath = zstring_width(zstring: '$$$/Dialogs/GetDocInfo/FilePath');
  5. gLabelTitle = zstring_width(zstring: '$$$/Dialogs/GetDocInfo/Title');
  6. gLabelSubject = zstring_width(zstring: '$$$/Dialogs/GetDocInfo/Subject');
  7. gLabelAuthor = zstring_width(zstring: '$$$/Dialogs/GetDocInfo/Author');
  8. gLabelKeywords = zstring_width(zstring: '$$$/Dialogs/GetDocInfo/Keywords');
  9. gLabelBinding = zstring_width(zstring: '$$$/Dialogs/GetDocInfo/Binding');
  10. gLabelCreator = zstring_width(zstring: '$$$/Dialogs/GetDocInfo/Creator');
  11. gLabelProducer = zstring_width(zstring: '$$$/Dialogs/GetDocInfo/Producer');
  12. gLabelPDFVersion = zstring_width(zstring: '$$$/Dialogs/GetDocInfo/PDFVersion');
  13. gLabelCreated = zstring_width(zstring: '$$$/Dialogs/GetDocInfo/Created');
  14. gLabelModified = zstring_width(zstring: '$$$/Dialogs/GetDocInfo/Modified');
  15. gLabelFileSize = zstring_width(zstring: '$$$/Dialogs/GetDocInfo/FileSize');
  16. gLabelOptimized = zstring_width(zstring: '$$$/Dialogs/GetDocInfo/Optimized');
  17. gLabelEncrypted = zstring_width(zstring: '$$$/Dialogs/GetDocInfo/Encrypted');
  18. gLabelPageSize = zstring_width(zstring: '$$$/Dialogs/GetDocInfo/PageSize');
  19. gLabelNumPages = zstring_width(zstring: '$$$/Dialogs/GetDocInfo/NumPages');
  20. gTaggedPDF = zstring_width(zstring: '$$$/Dialogs/GetDocInfo/TaggedPDF');
  21. gLabelItemWidth = max(
  22.     gLabelFilePath,
  23.     gLabelTitle,
  24.     gLabelSubject,
  25.     gLabelAuthor,
  26.     gLabelKeywords,
  27.     gLabelBinding,
  28.     gLabelCreator,
  29.     gLabelProducer,
  30.     gLabelCreated,
  31.     gLabelModified,
  32.     gLabelFileSize,
  33.     gLabelOptimized,
  34.     gLabelEncrypted,
  35.     gLabelPageSize) + max_char_width();
  36. gVerticalGapHeight = gStaticTextHeight / 4;
  37.  
  38. gMaxOptStatic = max(
  39.     zstring_width(zstring: '$$$avYes'),
  40.     zstring_width(zstring: '$$$avNo'));
  41.  
  42. dialog(name: '$$$/Dialogs/GetDocInfo')
  43. {
  44.     view(align_children: align_left)
  45.     {
  46.         view(align_children: align_top)
  47.         {
  48.             static_text(item_id: 'ptst', name: '$$$/Dialogs/GetDocInfo/FilePath', width: gLabelItemWidth, alignment: align_right);
  49.             static_text(item_id: 'path', width: gStaticItemWidth, height: gStaticTextHeight*2);
  50.         }
  51.         view(align_children: align_row)
  52.         {
  53.             static_text(name: '$$$/Dialogs/GetDocInfo/Title', width: gLabelItemWidth, alignment: align_right);
  54.             edit_text(item_id: 'titl', width: gEditItemWidth);
  55.         }
  56.         view(align_children: align_row)
  57.         {
  58.             static_text(name: '$$$/Dialogs/GetDocInfo/Subject', width: gLabelItemWidth, alignment: align_right);
  59.             edit_text(item_id: 'subj', width: gEditItemWidth);
  60.         }
  61.         view(align_children: align_row)
  62.         {
  63.             static_text(name: '$$$/Dialogs/GetDocInfo/Author', width: gLabelItemWidth, alignment: align_right);
  64.             edit_text(item_id: 'auth', width: gEditItemWidth);
  65.         }
  66.         view(align_children: align_row)
  67.         {
  68.             static_text(name: '$$$/Dialogs/GetDocInfo/Keywords', width: gLabelItemWidth, alignment: align_right);
  69.             edit_text(item_id: 'kwrd', width: gEditItemWidth);
  70.         }
  71.         view(align_children: align_row)
  72.         {
  73.             static_text(name: '$$$/Dialogs/GetDocInfo/Binding', width: gLabelItemWidth, alignment: align_right);
  74.             popup(item_id: 'bind', width: gPopupItemWidth);
  75.         }
  76.         gap( height: gVerticalGapHeight );
  77.         view(align_children: align_row)
  78.         {
  79.             static_text(name: '$$$/Dialogs/GetDocInfo/Creator', width: gLabelItemWidth, alignment: align_right);
  80.             static_text(item_id: 'crea', width: gStaticItemWidth);
  81.         }
  82.         view(align_children: align_row)
  83.         {
  84.             static_text(name: '$$$/Dialogs/GetDocInfo/Producer', width: gLabelItemWidth, alignment: align_right);
  85.             static_text(item_id: 'prod', width: gStaticItemWidth);
  86.         }
  87.         view(align_children: align_row)
  88.         {
  89.             static_text(name: '$$$/Dialogs/GetDocInfo/Created', width: gLabelItemWidth, alignment: align_right);
  90.             static_text(item_id: 'cdat', width: gStaticItemWidth);
  91.         }
  92.         view(align_children: align_row)
  93.         {
  94.             static_text(name: '$$$/Dialogs/GetDocInfo/Modified', width: gLabelItemWidth, alignment: align_right);
  95.             static_text(item_id: 'mdat', width: gStaticItemWidth);
  96.         }
  97.         view(align_children: align_row)
  98.         {
  99.             static_text(name: '$$$/Dialogs/GetDocInfo/FileSize', width: gLabelItemWidth, alignment: align_right);
  100.             static_text(item_id: 'fsiz', width: gStaticItemWidth);
  101.         }
  102.         view(align_children: align_row)
  103.         {
  104.             static_text(name: '$$$/Dialogs/GetDocInfo/Encrypted', width: gLabelItemWidth, alignment: align_right);
  105.             static_text(item_id: 'encd', width: gStaticItemWidth);
  106.         }
  107.         gap( height: gVerticalGapHeight );
  108.         view(align_children: align_row)
  109.         {
  110.             static_text(name: '$$$/Dialogs/GetDocInfo/PDFVersion', width: gLabelItemWidth, alignment: align_right);
  111.             static_text(item_id: 'pdfv', width: gStaticItemWidth/2+gLabelItemWidth-gLabelOptimized);
  112.             static_text(name: '$$$/Dialogs/GetDocInfo/Optimized');
  113.             static_text(item_id: 'optd', width: max_char_width()*7);
  114.         }
  115.         view(align_children: align_row)
  116.         {
  117.             static_text(name: '$$$/Dialogs/GetDocInfo/PageSize', width: gLabelItemWidth, alignment: align_right);
  118.             static_text(item_id: 'pgsz', width: gStaticItemWidth/2+gLabelItemWidth-gTaggedPDF);
  119.             static_text(name: '$$$/Dialogs/GetDocInfo/TaggedPDF');
  120.             static_text(item_id: 'tpdf', width: max_char_width()*7);
  121.         }
  122.         view(align_children: align_row)
  123.         {
  124.             static_text(name: '$$$/Dialogs/GetDocInfo/NumPages', width: gLabelItemWidth, alignment: align_right);
  125.             static_text(item_id: 'npgs', width: gStaticItemWidth/2);
  126.         }
  127.         gap( height: gVerticalGapHeight );
  128.         ok_cancel();
  129.     }
  130. }
  131.